home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / rocket_launcher.swf / scripts / DefineButton2_181 / BUTTONCONDACTION on(press, keyPress Space).as
Text File  |  2006-01-17  |  2KB  |  70 lines

  1. on(press, keyPress "<Space>"){
  2.    if(isPlaying == "5")
  3.    {
  4.       if(soundPlaying == "1")
  5.       {
  6.          tellTarget("/coin in s")
  7.          {
  8.             play();
  9.          }
  10.       }
  11.       if(Credits >= "1")
  12.       {
  13.          if("2" < Credits)
  14.          {
  15.             tocreditsPlayed = "3";
  16.             toCredits = Credits + singleCredit - "3";
  17.             set("_level0/wc/:totimesPay","3");
  18.          }
  19.          if(Credits == "2")
  20.          {
  21.             tocreditsPlayed = "2";
  22.             toCredits = Credits + singleCredit - "2";
  23.             set("_level0/wc/:totimesPay","2");
  24.          }
  25.          if(Credits == "1")
  26.          {
  27.             tocreditsPlayed = "1";
  28.             toCredits = Credits + singleCredit - "1";
  29.             set("_level0/wc/:totimesPay","1");
  30.          }
  31.          creditsPlayed = tocreditsPlayed;
  32.          Credits = toCredits;
  33.          set("_level0/wc/:timesPay",eval("_level0/wc/:totimesPay"));
  34.          isPlaying = "10";
  35.          multiCredit = "3";
  36.          isPlayingSpin = "10";
  37.          stop1 = random("30") + "5";
  38.          stop2 = random("10") + "5";
  39.          stop3 = random("10") + "5";
  40.          set("_level0/reel1/:keepGoing","1");
  41.          set("_level0/reel2/:keepGoing2","1");
  42.          set("_level0/reel3/:keepGoing3","1");
  43.          set("_level0/wc/:winnerLevel","0");
  44.          tellTarget("/startplaying")
  45.          {
  46.             play();
  47.          }
  48.          if(soundPlaying == "1")
  49.          {
  50.             tellTarget("reelsound")
  51.             {
  52.                play();
  53.             }
  54.             tellTarget("/reelstop3")
  55.             {
  56.                play();
  57.             }
  58.             tellTarget("/reelstop2")
  59.             {
  60.                play();
  61.             }
  62.             tellTarget("/reelstop1")
  63.             {
  64.                play();
  65.             }
  66.          }
  67.       }
  68.    }
  69. }
  70.